/**
 * 
 */
package smallChanges.statements;

import smallChanges.Tokenization.TokenSet;

/**
 * @author jspacco
 *
 */
public class IfStatementHeader extends ConditionalStatementHeader
{
	public IfStatementHeader(TokenSet tokenSet) {
		super(tokenSet);
		setStmtType(IF_STATEMENT_HEADER);
	}
	
	public String getImage() {
        //return "if ( "+getCondition().getTokenImage() +" )";
	    return getTokensInRange().getImage();
    }
    
    @Override
    String toStringHelper(int depth)
    {
        //return "if ( " +getCondition().getTokenImage() +" ) " +getCoords();
        return getTokensInRange().getImage() +" "+getCoords();
    }
}
